import 'package:dio/dio.dart';
import 'package:flutter/cupertino.dart';

import 'cache_response.dart';

class MMCacheManager {

  static Map<String,CacheResponse> _pool =Map();

  static put(String url,CacheResponse resposne){
    _pool[url]=resposne;
  }

  static CacheResponse? get(String url){
    debugPrint("命中 MM Cache:${url}");
    return _pool[url];
  }

  static bool exist(String url){
    return _pool.containsKey(url);
  }

}





